Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A01 Aleksandr Shefer #1212

Conversation

alex28sh
Copy link

@alex28sh alex28sh commented Feb 7, 2024

No description provided.

@alex28sh alex28sh closed this Feb 10, 2024
@alex28sh alex28sh reopened this Feb 10, 2024
Var (s) -> st (s)
| Const (x) -> x
| Binop (op, left, right) -> evalOp(op, (evalExpr(st, left)), (evalExpr(st, right)))
| e -> failure ("incorrect expr\n")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

failure("... %s ...", expr.string) or do not do it at all (then you will receive match failure with the object that was unmatched). In future it will be easier to establish forgotten case

@e2e4b6b7 e2e4b6b7 closed this Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants